package com.chenjun.core.service.oa;

import java.util.List;

import com.chenjun.common.bean.Pagination;
import com.chenjun.common.model.DataGridModel;
import com.chenjun.core.dao.generator.entity.OaBillAttnDetail;

/**
 * 
 * @Description: 考勤明细service
 * @author dongyibin
 * @date 2017-8-16 下午7:15:26
 */
public interface OaBillAttnDetailService {
	
	public OaBillAttnDetail get(int id);

	public int create(OaBillAttnDetail oaBillAttnDetail);

	public int delete(int id);

	public int update(OaBillAttnDetail oaBillAttnDetail);

	public int createOrUpdate(OaBillAttnDetail oaBillAttnDetail);

	public int editUser(OaBillAttnDetail oaBillAttnDetail);

	public int doCountByCondition(DataGridModel param);

	public List<OaBillAttnDetail> doListByCondition(DataGridModel param);

	public List<OaBillAttnDetail> getDistinctByEmplid(DataGridModel param);

	public Pagination doPagination(DataGridModel param);
	
	/**
	 * @Description: 获取异常打卡数据  
	 * @param startTime
	 * @param endTime
	 * @param userids
	 * @return
	 * @author dongyibin
	 * @date 2017-8-27 下午4:29:02
	 */
	public Pagination getAbNormalClock(DataGridModel param);

	/**
	 * @Description: 取员工正常工作小时数
	 * @param attnDetailParam
	 * @return
	 * @author dongyibin
	 * @date 2017-9-18 下午11:22:35
	 */
	public float getNormalHours(DataGridModel attnDetailParam);
	
}
